package
{
	import flashx.textLayout.elements.OverflowPolicy;

	public class StateSample extends State
	{
		protected var sFPS:String = "";
		public function StateSample()
		{
			super();
		}
		public override function Render(g:MyGraphics):void
		{
			g.Clear(0xFFFFFFFF);
			for(var i:int = 0;i<100;i++)
			{
				g.DrawCircle(Math.random()*g.Width(), Math.random()*g.Height(), Math.random()*20, Math.random()*0xFFFFFFFF);
			}
			g.DrawString(sFPS,10,10,0xFFFF0000);
		}
		public override function Update(dt:int):void
		{
			sFPS = ((int)(1000/dt)).toString();
		}
		public override function Init():void
		{
			
		}
		public override function Release():void
		{
			
		}
	}
}